﻿using LightWadf.Core.Processor;
using Microsoft.AspNetCore.Http;

namespace Demo.Core.Processor
{
    public class DemoProcessor : RestfulProcessor
    {
        public override void InitRouteRule()
        {
            this.AddRouteRule("/", "Hello", this.Hello);
        }

        public object Hello(HttpContext context)
        {
            return new { message = "Hello LightWadf.Core!" };
        }
    }
}
